• Manager API to control View Annotations.

    View annotations are UIView instances that are drawn on top of the MapView and bound to an arbitrary Geometry such as Point, or a Feature rendered on a layer. In case some view annotations intersect on the screen Z-index is based on addition order.

    View annotations are invariant to map camera transformations however such properties as size, visibility etc could be controlled by the user using update operation.

    See more

    Declaration

    Swift

    public final class ViewAnnotationManager
  • An interface you use to detect when the map view lays out or updates visibility of annotation views.

    When visible portion of a map changes, e.g. responding to the user interaction, the map view adjusts the positions and visibility of its annotation views. Implement methods of ViewAnnotationUpdateObserver to detect when the map view updates position/size for supplied annotation views. As well as when annotation views get show/hidden when going in/out of visible portion of the map.

    To register an observer for view annotation updates, call the addViewAnnotationUpdateObserver(_:) method.

    Important

    This protocol is deprecated and will be removed in future releases. Use ViewAnnotation instead.
    See more

    Declaration

    Swift

    public protocol ViewAnnotationUpdateObserver : AnyObject
  • Stores layout and visibility settings for a view annotation.

    Important

    ViewAnnotationOptions is deprecated and will be removed in future releases. Use ViewAnnotation instead.
    See more

    Declaration

    Swift

    public struct ViewAnnotationOptions : Equatable
  • Undocumented

    See more

    Declaration

    Swift

    public struct ViewAnnotationManagerError : Error, Equatable